home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group97a.txt / 000078_icon-group-sender _Sun Mar 9 16:01:56 1997.msg < prev    next >
Internet Message Format  |  2000-09-20  |  4KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 10 Mar 1997 12:47:12 MST
  2. Date: Sun, 9 Mar 1997 16:01:56 -0600 (CST)
  3. From: "Chris D. Tenaglia" <cdt@post.its.mcw.edu>
  4. To: Alan Watson <alan@oldp.nmsu.edu>
  5. Cc: icon-group@cs.arizona.edu
  6. Subject: Re: More General Events In Icon
  7. In-Reply-To: <331F0BE6.819@oldp.nmsu.edu>
  8. Message-Id: <Pine.ULT.3.90.970309153817.24851A-100000@post.its.mcw.edu>
  9. Mime-Version: 1.0
  10. Content-Type: TEXT/PLAIN; charset=US-ASCII
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12. Status: RO
  13. Content-Length: 3321
  14.  
  15. > I'm new to Icon. I came to it as something to add to the two tools I
  16. > have for solving problems: C on one hand and contortions with awk,
  17. > sed, m4, and other shell tools on the other. Until recently I was
  18. > singularly impressed and very optimistic, but I've come across what
  19. > appears to be a fundamental problem and it's making me think again.
  20. > I'd be very grateful if someone more experienced with Icon than I
  21. > could comment on this.
  22. Icon as a general shell and file tool is great. It's also well
  23. designed for trying out different algorythms and approaches to
  24. problems. But It's a high level language, so I wouldn't use it
  25. for things that require real time low level device control.
  26.  
  27. >                         --------
  28. > A number of applications require responses to events. These events are
  29. > commonly: a mouse or keyboard action in a window (graphics events);
  30. > the passage of a certain amount of time (alarm events); and the
  31. > presense of data ready to be read from a file (input events).
  32. ...snip
  33. The clock.
  34. Maybe using more explicit file handles and keeping everything
  35. in a tight polling loop?
  36.  
  37. > (b) An application I use on a regular basis for image processing
  38. > combines a command line interface with a graphics browser. The requires
  39. > responding to both graphics events and input events. (Re-writing xterm
  40. > within the application would not be acceptable!)
  41. I wrote something like this back in '88. I used a Decwindows microvax I
  42. running vms 4, and it had both vt100 and tek4014 emulation. If I would
  43. telnet in a tek window to a supercomputer. I slapped together an icon
  44. graphics enviroment that was interactive. No mouse control, but on a
  45. 19" screen the icon code took up 2-4" and would compile, run and display.
  46. I could direct the output to a file and run tek2ps to make it printable.
  47. Primitive by todays measure, but pretty cool back then.
  48.  
  49. > (c) A guy down the corridor is implementing the user interface to a
  50. > telescope control system. The telescope is controlled by a networked
  51. > PC. The user interface runs on a (remote) UNIX work station. The user
  52. > interface and the PC communicate by writing and reading NFS files. The
  53. > user interface also has a command line interface and a graphical
  54. > display. The program must respond to all three kinds of events: it
  55. > handles graphical and input events as expected, but in addition must
  56. > check for a NFS file every half second or so.
  57. This is a real time hardware control problem. Using a shared file
  58. for a protocol is ok if the systems are fast enough. I can understand
  59. telescopes getting computers in them as a natural evolution. One would
  60. almost prefer a telescope be dumber like a plotter. It could almost
  61. run HPGL off a serial or HPIB interface. Then you could print to it.
  62. RA6h42.9m
  63. DEC-16d39'
  64. FOCUS
  65. FILTERR100G100B78
  66. etc,...
  67.  
  68.  
  69. >                         --------
  70. > Throwing everything into a language is probably not a good idea.
  71. > Therefore, we should not expect one language to be able to do
  72. > everything. However, the unsuitability of Icon to these three
  73. > applications astonished me; they seemed at first glance well within
  74. > the domain of problems it is intended to solve.
  75. > Am I missing something?
  76. > Alan
  77. But I wouldn't use it to write an OS kernal , file system, or
  78. re-invent someone elses wheel IMHO.
  79.  
  80. Chris.
  81.  
  82.